package com.tianji.exam.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 考试表
 * </p>
 *
 * @author author
 * @since 2023-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("exam")
@ApiModel(value="Exam对象", description="考试表")
public class Exam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "考试id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "考试类型（0为练习，1为考试）")
    private Integer type;

    @ApiModelProperty(value = "考试分数")
    private Integer score;

    @ApiModelProperty(value = "考试提交时间")
    private LocalDateTime commitTime;

    @ApiModelProperty(value = "考试用时")
    private LocalDateTime duration;

    @ApiModelProperty(value = "考试开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "课程id")
    private Long courseId;

    @ApiModelProperty(value = "小节id")
    private Long sectionId;

    @ApiModelProperty(value = "考试详情表id")
    private Long examZjId;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "课程名称")
    private String courseName;

    @ApiModelProperty(value = "章节名称")
    private String sectionName;


}
